import request from '@/utils/request'

// 根据ID查询详情数据
export function getInfoById71(itemId) {
  return request({
    url: '/biz/item/71/getInfoById/' + itemId,
    method: 'get',
  })
}

// 1.本底值检测
export function background(data) {
  return request({
    url: '/biz/item/71/background',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

// 2.周围工作场所辐射防护检测
export function protection(data) {
  return request({
    url: '/biz/item/71/protection',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

// 3
export function defensePosition(data) {
  return request({
    url: '/biz/item/71/defensePosition',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

// 修改
export function saveInfo(data) {
  return request({
    url: '/biz/item/71/saveInfo',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

// 获取点位类型
export function getPointType() {
  return request({
    url: '/biz/item/71/protection/position/dict',
    method: 'get',
  })
}
export function getDetectionLocationRow(itemsId, positionType) {
  return request({
    url: `/biz/item/71/protection/position/${itemsId}/${positionType}`,
    method: 'post',
  })
}
